﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Sitio
{
    public partial class Principal : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {    if (!IsPostBack)
            {
                if (this.Session["usuario"]==null) {
                    Response.Redirect("Login.aspx");  
                }
            }
           
        }

        protected void Button1_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormFamilia.aspx");
        }

        protected void Button3_Click1(object sender, EventArgs e)
        {
            Response.Redirect("Subfamilias.aspx");
        }

        protected void Button2_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormArea.aspx");
        }

        protected void Button5_Click(object sender, EventArgs e)
        {
            Response.Redirect("WebFormProveedor.aspx");
        }

        protected void Button6_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormCentroDeCostos_Insertar.aspx");
        }

        protected void Button7_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormCentrosDeCosto_EliminarEditar.aspx");
        }

        protected void Button8_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormResponsableAsignarCentrodeCosto.aspx");
        }

        protected void Button9_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormModificarAsignacionCentrodeCostoResponsable.aspx");
        }

        protected void Button4_Click1(object sender, EventArgs e)
        {
            Response.Redirect("WebFormSubArea.aspx");
        }

        protected void Button10_Click(object sender, EventArgs e)
        {
            Response.Redirect("WebFormActivos.aspx");
        }
    }
}